package com.czq.gulimail.gulimailproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czq.common.utils.PageUtils;
import com.czq.gulimail.gulimailproduct.entity.CategoryBrandRelationEntity;
import com.czq.gulimail.gulimailproduct.vo.resp.BrandCategoryResp;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author czq
 * @email 1807099124@qq.com
 * @date 2024-09-23 19:03:06
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryBrandRelationEntity> getListByBrandId(Long id);

    void deleteByBrandIdAndCateId(CategoryBrandRelationEntity categoryBrandRelationEntity);

    void deleteBatchByBrandId(Long[] ids);

    void deleteBatchByCateId(Long[] ids);

    void updateByBrand(Long brandId, String name);

    void updateByCate(Long catId, String name);

    List<BrandCategoryResp> getBrandList(Long catId);
}

